<template>
  <div class="container">
    <div class="container-card">

      <div class="card-title">
        <span style="overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp:2;">
          Spring Cloud 微服务权限系统搭建教程Spring Cloud 微服务权限系统搭建教程Spring Cloud 微服务权限系统搭建教程Spring Cloud 微服务权限系统搭建教程Spring Cloud 微服务权限系统搭建教程Spring Cloud 微服务权限系统搭建教程
        </span>
      </div>
      <div class="second-title">
        <p style="overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp:3;">
       《 Spring Cloud 微服务权限系统搭建教程 》一本基于Spring Cloud Hoxton.RELEASE&Spring Cloud Oauth2&Spring Cloud Alibaba的微服务权限系统搭建教程书籍，手把手教你从零到K8S集群部署。jkjjosajfiejjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
        </p>
      </div>
      <div class="flex flex-row mt-2">
        <div class="radius" @click="showTeam">
          <img src="src/assets/logo.png">
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import {ref} from 'vue';
import {onBeforeRouteLeave, useRoute, useRouter} from "vue-router";
export default {
  name: "one",
  setup(){

    // 获取路由器实例
    const router = useRouter()
    const count = ref(12);

    function showTeam(){
      console.log("dianji");
      router.push('/showTeam')
    }

    return {showTeam,count}
  }
}
</script>

<style scoped>
  .container{
    width: 70%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
  }
  .container-card{
    height: 200px;
    width: 70%;
    border: 1px slategray;
    box-shadow: 2px 2px 5px 1px #999999;
    padding: 15px 20px;
  }
  .card-title{
    font-size: 20px;
    font-family: "Microsoft YaHei UI";
    height: 40px;
    width: 100%;
  }

  .second-title{
    margin-top: 25px;
    font-size: 16px;
    color: #999999;
  }

  .radius{
    width: 30px;
    height: 30px;
    border: 1px solid black;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 1px 1px 5px 2px #999999;
  }
  .radius img{
    width: 100%;
    height: 100%;
  }
</style>
